package com.mxfcode.back.mapper;


import com.mxfcode.back.dto.PermissionDTO;
import com.mxfcode.entity.TSPermission;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface PermissionMapper {
    List<PermissionDTO> getPermissionList();

    List<PermissionDTO> parentPermissionList();

    int updatePermission(TSPermission permission);

    List<PermissionDTO> getPermissionListByPId(@Param("pid") Integer pid);

    int insertPermission(@Param("permission") TSPermission permission);

    int deleteByPrimaryKey(@Param("id") Integer id);

    TSPermission selectByPrimaryKey(@Param("id") Integer id);
}